﻿<TN:TaskbarNotifier x:Class="WindowPlace.PlaceProfileNotifier"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:TN="clr-namespace:WPFTaskbarNotifier;assembly=WPFTaskbarNotifier"
      mc:Ignorable="d" 
      Width="300" Height="70"
                    x:Name="me"
                    AllowsTransparency="True"
                    Background="Transparent"
	Title="NotificationWindow">
    
    <Window.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"></Setter>
        </Style>
    </Window.Resources>

    <Border BorderBrush="Black" BorderThickness="1" CornerRadius="5" Padding="3"
            Background="{StaticResource Gradient1}">
        <Grid DataContext="{Binding Info, ElementName=me}">

            <TextBlock Text="{Binding PlaceProfile.Label}" FontSize="14" TextWrapping="Wrap" VerticalAlignment="Top" Margin="10,2,2,2"
                       FontWeight="Bold"></TextBlock>
            <TextBlock Text="{Binding Message}"  VerticalAlignment="Center" Margin="10,2,2,2"
                       ></TextBlock>
            <Button HorizontalAlignment="Right" VerticalAlignment="Top" Click="Close_Click"
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
                <Image Source="/WindowPlace;component/icons/bt_delete.png" Width="13"></Image>
            </Button>
        </Grid>
    </Border>
</TN:TaskbarNotifier>
